<?php

class Admin extends Controller
{
	var $data=array();
	
	public function __construct()
	{
		parent::Controller();
        include("password_protect.php");
	}
	
	function index()
	{
		if($this->input->post('search_city'))
		{
			$this->load->view("admin_search_city",$this->data);
		}
		else if($this->input->post('search_province'))
		{
			$this->load->view("admin_search_prov",$this->data);
		}
		else if($this->input->post('add_location'))
		{
			$this->load->view("admin_add_city",$this->data);
		}
		else if($this->input->post('search_quote1'))
		{
			$this->load->view("admin_search_date",$this->data);
		}
		else if($this->input->post('search_quote2'))
		{
			$this->load->view("admin_search_pickup",$this->data);
		}
		else
			$this->load->view("admin",$this->data);
	}
}